﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using CMS.BLL;


public partial class Controls_StaticPages_ctrStaticNavigation : System.Web.UI.UserControl
{
    private int nCurrentLanguage = Support.GetCurrentLanguage(); 
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            this.SetLabel();
        }
    }
    private void SetLabel()
    {
        lnkHome.Text = MultipleLanguage.HOME[nCurrentLanguage - 1];
        

        int nPID = ConvertData.ConvertToInt(Request.QueryString["pid"]);
        StaticPages obj = new StaticPages();
        obj.LoadById(nPID);
        switch (nCurrentLanguage)
        { 
            case 1:
                lblPageName.Text = ConvertData.ConvertToString(obj.Data.PageName1);
                break;
            case 2:
                lblPageName.Text = ConvertData.ConvertToString(obj.Data.PageName2);
                break;
            case 3:
                lblPageName.Text = ConvertData.ConvertToString(obj.Data.PageName3);
                break;

        }
       
    }

}